package com.repair.worker.exception;

import com.repair.base.exception.ErrorCode;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum WorkerOperateStreamErrorCode implements ErrorCode {

    CAPTCHA_ERROR(7001, "验证码错误"),
    CAPTCHA_SEND_ERROR(7003, "验证码三方调用错误"),
    CAPTCHA_TOO_MANY_REQUESTS(7002, "验证码发送频率过高，稍后再试");

    private final Integer code;
    private final String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
